package com.pz.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pz.gulimall.common.to.OrderInfoTo;
import com.pz.gulimall.common.utils.PageUtils;
import com.pz.gulimall.common.utils.R;
import com.pz.gulimall.order.entity.OrderEntity;

import java.util.Map;

/**
 * 订单
 *
 * @author PZ
 * @email pzs@gmail.com
 * @date 2024-02-02 11:30:41
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R saveOrder(OrderInfoTo orderInfo);

    void updateOrderStatus(Long orderId, Integer status);

    void cancelOrder(Long orderId);

    Integer checkOrderStatus(Long orderId);
}

